package com.heima.model.admin.adminDto;

import lombok.Data;

/**
 * @author shitou
 * @className ChannelDto
 * @description: TODO
 */
@Data
public class ChannelDto {
    /**
     * 频道名称
     */
    private String name;
    /**
     * 当前页
     */
    private Integer page;
    /**
     * 每页显示条数
     */
    private Integer size;

    public void setPage(Integer page) {
        if (page < 0) {
            this.page = 1;
        }
        this.page = page;
    }

    public void setSize(Integer size) {
        if (size < 0) {
            this.size = 1;
        }
        this.size = size;
    }
}
